﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：InstockGroupVM
// 文件功能描述：食材出库VM
//
// 
// 创建标识：2012-1-31 jiangyong
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace WaiGaoQiaoWeb.Models
{
    public class OutstockGroupSporadicVM
    {

        public int ID
        {
            get;
            set;
        }

        [Display(Name = "领用日期")]
        [Required(ErrorMessage = "领用日期不能为空")]
        public DateTime LeanDt
        {
            get;
            set;
        }

        [Display(Name = "零星物品")]
        [Required(ErrorMessage = "零星物品不能为空")]        
        public int GoodsID
        {
            get;
            set;
        }

        [Display(Name = "领用部门")]
        [Required(ErrorMessage = "领用部门不能为空")]        
        public string LeanDept
        {
            get;
            set;
        }

        [Display(Name = "领用数量")]
        [Required(ErrorMessage = "领用数量不能为空")]
        [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "领用数量必须为正整数")]
        [Remote("OutStockYzh", "OutstockSporadic", AdditionalFields = "Con_GoodsInfoId,LeanCount", HttpMethod = "POST", ErrorMessage = "库存不足")]
        public int LeanCount
        {
            get;
            set;
        }


        public string Operator_ID
        {
            get;
            set;
        }

        public DateTime RecordDateTime
        {
            get;
            set;
        }

        public string OrderNo
        {
            get;
            set;
        }
        [Required(ErrorMessage = "零星物品不能为空")]
        public string GoodsID1
        {
            get;
            set;
        }
    }
}